import './config'
import { baseUrl } from './config'
export default function (opstion) {
  return new Promise((resolove,reject) => {
    wx.request({
      url: baseUrl + opstion.url,
      method: opstion.method || 'get',
      data: opstion.data || {},
      success: resolove,
      fail: reject
    })
  })
}